package com.wfh.rpc.fault.tolerant;

import com.wfh.rpc.model.RpcResponse;

import java.util.Map;

/**
 * @Title: FastFailTolerantStrategy
 * @Author wangfenghuan
 * @Package com.wfh.rpc.fault.tolerant
 * @Date 2025/10/17 08:50
 * @description: 快速失败
 */
public class FastFailTolerantStrategy implements TolerantStrategy {
    @Override
    public RpcResponse doTolerant(Map<String, Object> context, Exception e) {
        throw new RuntimeException("服务错误", e);
    }
}
